package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.WeaponsEquipmentMapper;
import com.party.business.domain.WeaponsEquipment;
import com.party.business.service.IWeaponsEquipmentService;

/**
 * 武器装备Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class WeaponsEquipmentServiceImpl extends ServiceImpl<WeaponsEquipmentMapper,WeaponsEquipment>  implements IWeaponsEquipmentService
{
    @Autowired
    private WeaponsEquipmentMapper weaponsEquipmentMapper;

    /**
     * 查询武器装备
     *
     * @param id 武器装备主键
     * @return 武器装备
     */
    @Override
    public WeaponsEquipment selectWeaponsEquipmentById(Long id)
    {
        return weaponsEquipmentMapper.selectWeaponsEquipmentById(id);
    }

    /**
     * 查询武器装备列表
     *
     * @param weaponsEquipment 武器装备
     * @return 武器装备
     */
    @Override
    public List<WeaponsEquipment> selectWeaponsEquipmentList(WeaponsEquipment weaponsEquipment)
    {
        return weaponsEquipmentMapper.selectWeaponsEquipmentList(weaponsEquipment);
    }

    /**
     * 新增武器装备
     *
     * @param weaponsEquipment 武器装备
     * @return 结果
     */
    @Override
    public int insertWeaponsEquipment(WeaponsEquipment weaponsEquipment)
    {
            return weaponsEquipmentMapper.insertWeaponsEquipment(weaponsEquipment);
    }

    /**
     * 修改武器装备
     *
     * @param weaponsEquipment 武器装备
     * @return 结果
     */
    @Override
    public int updateWeaponsEquipment(WeaponsEquipment weaponsEquipment)
    {
        return weaponsEquipmentMapper.updateWeaponsEquipment(weaponsEquipment);
    }

    /**
     * 批量删除武器装备
     *
     * @param ids 需要删除的武器装备主键
     * @return 结果
     */
    @Override
    public int deleteWeaponsEquipmentByIds(Long[] ids)
    {
        return weaponsEquipmentMapper.deleteWeaponsEquipmentByIds(ids);
    }

    /**
     * 删除武器装备信息
     *
     * @param id 武器装备主键
     * @return 结果
     */
    @Override
    public int deleteWeaponsEquipmentById(Long id)
    {
        return weaponsEquipmentMapper.deleteWeaponsEquipmentById(id);
    }
}
